package com.java;

import java.util.Scanner;

public class Test2 {

    public void Fun(int ret) {
        if (ret > 9) {
            Fun(ret / 10);
        }
        System.out.print(ret % 10 + " ");
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Test2 val = new Test2();
        int ret = scanner.nextInt();
        val.Fun(ret);
    }
}
